package com.hx.vending.dao;

import com.hx.vending.bean.Medicine;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2018/11/26.
 * 病区
 */
@Repository
public interface MedicineMapper {

    int deleteByPrimaryKey(Integer medicineId);

    int insertSelective(Medicine record);

    Medicine selectByPrimaryKeySelective(Medicine record);

    List<Medicine> selectByExampleSelective(Medicine record);

    int updateByPrimaryKeySelective(Medicine record);

    int updateStatusByOrderId(Medicine record);

    List<Medicine> selectByExamplePage(@Param("userId") Integer userId,@Param("integers") Integer[] integers,
                                       @Param("pageNum") Integer pageNum);

    int deleteByOrderId(Integer orderId);
}

